import request from '@/utils/request'


export function getList(query) {
  return request({
    url: '/retailAshUrn/listQuery',
    method: 'get',
    params: query
  })
}

export function create(data) {
  return request({
    url: '/retailAshUrn/add',
    method: 'post',
    data
  })
}

export function update( data) {
  return request({
    url: `/retailAshUrn/update`,
    method: 'put',
    data
  })
}

export function deleteData(id) {
  return request({
    url: `/retailAshUrn/delete/?id=${id}`,
    method: 'delete'
  })
}
